package priv.wjh.study.dyn.controller.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import priv.wjh.study.dyn.controller.util.DynamicRegisterUtil;

@Component
@RequestMapping("test")
public class TestController {

    @Autowired
    private DynamicRegisterUtil dynamicRegisterUtil;


    @GetMapping
    @ResponseBody
    public String test(){
        return "test";
    }

    @GetMapping("hello")
    @ResponseBody
    public String hello(){
        return "hello";
    }
}
